<style>
    :root {
        --primary: #2563eb;
        --primary-light: #eff6ff;
        --secondary: #64748b;
        --accent: #f97316;
        --success: #10b981;
        --warning: #f59e0b;
        --danger: #ef4444;
        --light-bg: #f8fafc;
        --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    body {
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        background-color: var(--light-bg);
        color: #333;
        line-height: 1.6;
    }


    /* 通用模块样式 */
    .content-module {
        background-color: white;
        border-radius: 10px;
        box-shadow: var(--card-shadow);
        padding: 20px;
        margin-bottom: 30px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .content-module:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
    }

    .content-module .module-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-light);
    }

    .content-module .module-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary);
        display: flex;
        align-items: center;
    }

    .content-module .module-title i {
        margin-right: 10px;
        font-size: 1.4rem;
    }

    .content-module .view-more {
        color: var(--secondary);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s;
    }

    .content-module .view-more:hover {
        color: var(--primary);
        text-decoration: underline;
    }

    /* 列表项通用样式 */
    .content-item {
        padding: 15px 0;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: flex-start;
        transition: background-color 0.2s;
    }

    .content-item:last-child {
        border-bottom: none;
    }

    .content-item:hover {
        background-color: rgba(37, 99, 235, 0.03);
    }

    .content-item .item-info {
        flex: 1;
    }

    .content-item .item-title {
        font-weight: 500;
        margin-bottom: 8px;
        transition: color 0.2s;
    }

    .content-item .item-title a {
        color: #1e293b;
        text-decoration: none;
    }

    .content-item .item-title a:hover {
        color: var(--primary);
    }

    .content-item .item-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.85rem;
        color: var(--secondary);
    }

    .content-item .item-meta span {
        display: flex;
        align-items: center;
    }

    .content-item .item-meta i {
        margin-right: 5px;
        font-size: 0.9rem;
    }

    /* 最新文章样式 */
    .content-item .article-thumbnail {
        width: 100px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .content-item .article-category {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        margin-right: 8px;
        font-weight: 500;
    }

    .content-item .category-tech {
        background-color: rgba(37, 99, 235, 0.1);
        color: var(--primary);
    }

    .content-item .category-life {
        background-color: rgba(16, 185, 129, 0.1);
        color: var(--success);
    }

    .content-item .category-business {
        background-color: rgba(249, 115, 22, 0.1);
        color: var(--accent);
    }

    /* 问答样式 */
    .content-item .question-status {
        min-width: 60px;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        text-align: center;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .content-item .status-resolved {
        background-color: rgba(16, 185, 129, 0.1);
        color: var(--success);
    }

    .content-item .status-unresolved {
        background-color: rgba(239, 68, 68, 0.1);
        color: var(--danger);
    }

    /* 活动样式 */
    .content-item .event-date {
        min-width: 60px;
        background-color: var(--primary-light);
        color: var(--primary);
        border-radius: 6px;
        padding: 8px 5px;
        text-align: center;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .content-item .event-date .day {
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1;
    }

    .content-item .event-date .month {
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .content-item .event-type {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        margin-right: 8px;
        background-color: rgba(245, 158, 11, 0.1);
        color: var(--warning);
        font-weight: 500;
    }

    /* 投票样式 */
    .content-item .voting-progress {
        width: 80px;
        height: 80px;
        margin-right: 15px;
        flex-shrink: 0;
        position: relative;
    }

    .content-item .progress-ring {
        transform: rotate(-90deg);
        width: 100%;
        height: 100%;
    }

    .content-item .progress-ring-circle {
        stroke: var(--primary);
        stroke-width: 6;
        fill: transparent;
        transition: stroke-dashoffset 0.5s ease;
    }

    .content-item .progress-background {
        stroke: #e2e8f0;
        stroke-width: 6;
        fill: transparent;
    }

    .content-item .voting-percentage {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: 700;
        color: var(--primary);
    }

    /* 星座样式 */
    .content-item .horoscope-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: var(--primary-light);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .content-item .horoscope-lucky {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        margin-right: 8px;
        background-color: rgba(16, 185, 129, 0.1);
        color: var(--success);
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
        .content-module {
            padding: 15px;
        }

        .content-module .module-title {
            font-size: 1.1rem;
        }

        .content-item .article-thumbnail {
            width: 80px;
            height: 60px;
        }

        .content-item .voting-progress {
            width: 60px;
            height: 60px;
        }

        .content-item .progress-ring-circle, .content-item .progress-background {
            stroke-width: 4;
        }

        .content-item .item-meta {
            gap: 10px;
            font-size: 0.8rem;
        }
    }

    @media (max-width: 576px) {
        .content-item {
            flex-direction: column;
        }

        .content-item .article-thumbnail, .content-item .question-status, .content-item .event-date,
        .content-item .voting-progress, .content-item .horoscope-icon {
            margin-right: 0;
            margin-bottom: 10px;
        }

        .content-item .article-thumbnail {
            width: 100%;
            height: 120px;
        }

        .content-item .question-status, .content-item .event-date {
            width: 100%;
            text-align: left;
            display: inline-block;
        }

        .content-item .voting-progress {
            margin: 0 auto 10px;
        }

        .content-item .horoscope-icon {
            margin: 0 auto 10px;
        }
    }
</style>

<div class="container">
    <div class="row">
        <!-- 左侧主内容区 -->
        <div class="col-lg-8">
            <!-- 最新文章模块 -->
            <div class="content-module">
                <div class="module-header">
                    <h2 class="module-title">
                        <i class="fas fa-newspaper"></i>最新文章
                    </h2>
                    <a href="#" class="view-more">查看全部 <i class="fas fa-angle-right"></i></a>
                </div>

                <div class="content-list">
                    <div class="content-item">
                        <img src="https://picsum.photos/id/1005/300/200" alt="AI发展趋势" class="article-thumbnail">
                        <div class="item-info">
                            <div class="item-title">
                                <span class="article-category category-tech">科技</span>
                                <a href="#">2023年人工智能发展十大趋势：从生成式AI到自主智能体</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>科技前沿</span>
                                <span><i class="far fa-clock"></i>2小时前</span>
                                <span><i class="far fa-eye"></i>1.2k 阅读</span>
                                <span><i class="far fa-comment"></i>32</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <img src="https://picsum.photos/id/1025/300/200" alt="远程工作指南" class="article-thumbnail">
                        <div class="item-info">
                            <div class="item-title">
                                <span class="article-category category-life">生活</span>
                                <a href="#">远程工作效率提升指南：从环境搭建到时间管理</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>职场研究院</span>
                                <span><i class="far fa-clock"></i>5小时前</span>
                                <span><i class="far fa-eye"></i>856 阅读</span>
                                <span><i class="far fa-comment"></i>24</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <img src="https://picsum.photos/id/180/300/200" alt="创业融资" class="article-thumbnail">
                        <div class="item-info">
                            <div class="item-title">
                                <span class="article-category category-business">商业</span>
                                <a href="#">初创企业融资攻略：如何打动天使投资人</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>创业导师</span>
                                <span><i class="far fa-clock"></i>昨天</span>
                                <span><i class="far fa-eye"></i>1.5k 阅读</span>
                                <span><i class="far fa-comment"></i>47</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 近期活动模块 -->
            <div class="content-module">
                <div class="module-header">
                    <h2 class="module-title">
                        <i class="fas fa-calendar-alt"></i>近期活动
                    </h2>
                    <a href="#" class="view-more">查看全部 <i class="fas fa-angle-right"></i></a>
                </div>

                <div class="content-list">
                    <div class="content-item">
                        <div class="event-date">
                            <div class="day">15</div>
                            <div class="month">七月</div>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <span class="event-type">线上</span>
                                <a href="#">2023科技创新峰会：AI与元宇宙的未来发展</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-building"></i>未来科技研究院</span>
                                <span><i class="fas fa-map-marker-alt"></i>线上直播</span>
                                <span><i class="fas fa-users"></i>1200人已报名</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="event-date">
                            <div class="day">25</div>
                            <div class="month">六月</div>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <span class="event-type">线下</span>
                                <a href="#">城市徒步：探索老城区的历史建筑与文化故事</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>城市漫游者</span>
                                <span><i class="fas fa-map-marker-alt"></i>北京市东城区</span>
                                <span><i class="fas fa-users"></i>45人已报名</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="event-date">
                            <div class="day">02</div>
                            <div class="month">七月</div>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <span class="event-type">混合</span>
                                <a href="#">青年创业者分享会：从0到1的创业实战经验</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-building"></i>创业者联盟</span>
                                <span><i class="fas fa-map-marker-alt"></i>上海+线上</span>
                                <span><i class="fas fa-users"></i>860人已报名</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 热门投票模块 -->
            <div class="content-module">
                <div class="module-header">
                    <h2 class="module-title">
                        <i class="fas fa-poll"></i>热门投票
                    </h2>
                    <a href="#" class="view-more">查看全部 <i class="fas fa-angle-right"></i></a>
                </div>

                <div class="content-list">
                    <div class="content-item">
                        <div class="voting-progress">
                            <svg class="progress-ring" width="80" height="80">
                                <circle class="progress-background" stroke-width="6" stroke="currentColor"
                                        fill="transparent" r="34" cx="40" cy="40"/>
                                <circle class="progress-ring-circle" stroke-width="6" stroke="currentColor"
                                        fill="transparent" r="34" cx="40" cy="40" stroke-dasharray="213.628"
                                        stroke-dashoffset="53.407"/>
                            </svg>
                            <div class="voting-percentage">75%</div>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">你更倾向于哪种工作模式？远程、混合还是完全线下？</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>职场调查</span>
                                <span><i class="far fa-clock"></i>3天前</span>
                                <span><i class="fas fa-users"></i>2.5k 人参与</span>
                                <span><i class="far fa-hourglass-half"></i>还剩2天结束</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="voting-progress">
                            <svg class="progress-ring" width="80" height="80">
                                <circle class="progress-background" stroke-width="6" stroke="currentColor"
                                        fill="transparent" r="34" cx="40" cy="40"/>
                                <circle class="progress-ring-circle" stroke-width="6" stroke="currentColor"
                                        fill="transparent" r="34" cx="40" cy="40" stroke-dasharray="213.628"
                                        stroke-dashoffset="85.451"/>
                            </svg>
                            <div class="voting-percentage">60%</div>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">你最常用的AI工具是什么？ChatGPT、Midjourney还是其他？</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>科技爱好者</span>
                                <span><i class="far fa-clock"></i>1天前</span>
                                <span><i class="fas fa-users"></i>1.8k 人参与</span>
                                <span><i class="far fa-hourglass-half"></i>还剩5天结束</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="voting-progress">
                            <svg class="progress-ring" width="80" height="80">
                                <circle class="progress-background" stroke-width="6" stroke="currentColor"
                                        fill="transparent" r="34" cx="40" cy="40"/>
                                <circle class="progress-ring-circle" stroke-width="6" stroke="currentColor"
                                        fill="transparent" r="34" cx="40" cy="40" stroke-dasharray="213.628"
                                        stroke-dashoffset="128.177"/>
                            </svg>
                            <div class="voting-percentage">40%</div>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">周末你更喜欢哪种休闲方式？户外活动、居家休息还是文化体验？</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>生活方式调查</span>
                                <span><i class="far fa-clock"></i>5天前</span>
                                <span><i class="fas fa-users"></i>3.2k 人参与</span>
                                <span><i class="far fa-hourglass-half"></i>已结束</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 右侧边栏 -->
        <div class="col-lg-4">
            <!-- 热议问答模块 -->
            <div class="content-module">
                <div class="module-header">
                    <h2 class="module-title">
                        <i class="fas fa-comments"></i>热议问答
                    </h2>
                    <a href="#" class="view-more">更多问答</a>
                </div>

                <div class="content-list">
                    <div class="content-item">
                        <div class="question-status status-resolved">已解决</div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">30岁转行IT行业来得及吗？需要做哪些准备？</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>职场新人</span>
                                <span><i class="far fa-clock"></i>2天前</span>
                                <span><i class="far fa-comment"></i>42 回答</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="question-status status-unresolved">待解决</div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">初创公司如何在有限预算下进行有效的市场推广？</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>创业者小李</span>
                                <span><i class="far fa-clock"></i>昨天</span>
                                <span><i class="far fa-comment"></i>18 回答</span>
                            </div>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="question-status status-resolved">已解决</div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">如何平衡工作与生活？避免 burnout（职业倦怠）的方法有哪些？</a>
                            </div>
                            <div class="item-meta">
                                <span><i class="far fa-user"></i>职场顾问</span>
                                <span><i class="far fa-clock"></i>3天前</span>
                                <span><i class="far fa-comment"></i>76 回答</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 星座速览模块 -->
            <div class="content-module">
                <div class="module-header">
                    <h2 class="module-title">
                        <i class="fas fa-star"></i>星座速览
                    </h2>
                    <a href="#" class="view-more">全部星座</a>
                </div>

                <div class="content-list">
                    <div class="content-item">
                        <div class="horoscope-icon">
                            <i class="fas fa-bull"></i>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">金牛座今日运势</a>
                            </div>
                            <div class="item-meta">
                                <span class="horoscope-lucky">幸运色：绿色</span>
                                <span><i class="fas fa-moon"></i>爱情：★★★★☆</span>
                                <span><i class="fas fa-briefcase"></i>事业：★★★☆☆</span>
                            </div>
                            <p class="text-sm text-secondary mt-1">今日适合处理财务事宜，感情方面有小惊喜。</p>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="horoscope-icon">
                            <i class="fas fa-twin"></i>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">双子座今日运势</a>
                            </div>
                            <div class="item-meta">
                                <span class="horoscope-lucky">幸运色：黄色</span>
                                <span><i class="fas fa-moon"></i>爱情：★★★☆☆</span>
                                <span><i class="fas fa-briefcase"></i>事业：★★★★★</span>
                            </div>
                            <p class="text-sm text-secondary mt-1">工作效率高，适合开展新项目，社交场合有好机会。</p>
                        </div>
                    </div>

                    <div class="content-item">
                        <div class="horoscope-icon">
                            <i class="fas fa-crab"></i>
                        </div>
                        <div class="item-info">
                            <div class="item-title">
                                <a href="#">巨蟹座今日运势</a>
                            </div>
                            <div class="item-meta">
                                <span class="horoscope-lucky">幸运色：蓝色</span>
                                <span><i class="fas fa-moon"></i>爱情：★★★★★</span>
                                <span><i class="fas fa-briefcase"></i>事业：★★☆☆☆</span>
                            </div>
                            <p class="text-sm text-secondary mt-1">感情运极佳，适合与家人共度时光，工作上宜稳不宜躁。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
	// 计算投票进度环的动画效果
	document.addEventListener('DOMContentLoaded', function () {
		// 获取所有进度环
		const progressCircles = document.querySelectorAll('.progress-ring-circle');

		progressCircles.forEach(circle => {
			// 获取圆的半径和周长
			const radius = circle.r.baseVal.value;
			const circumference = radius * 2 * Math.PI;

			// 设置初始状态
			circle.style.strokeDasharray = `${circumference} ${circumference}`;

			// 从数据属性获取百分比
			const percentage = parseInt(circle.closest('.voting-progress').querySelector('.voting-percentage').textContent);

			// 计算偏移量
			const offset = circumference - (percentage / 100) * circumference;
			circle.style.strokeDashoffset = offset;
		});

	});
</script>

